-- GENERATED SPELL FOR [Mo'grosh Ogre] --


function spell0_1178(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(5164,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1178', 2000, 1)
end

function Sorts_1178(pUnit, Event)
local choix_sorts_1178 = math.random(0, 0)
if choix_sorts_1178 == 0 then
pUnit:RegisterEvent('spell0_1178', 1, 1)
end
end

function mob1178_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1178', math.random(1500, 3000), 1)
end

function mob1178_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1178_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1178_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1178, 1, 'mob1178_Action')
RegisterUnitEvent(1178, 2, 'mob1178_Leave')
RegisterUnitEvent(1178, 3, 'mob1178_Kill')
RegisterUnitEvent(1178, 4, 'mob1178_Die')
